package com.open.capacity.user.dao;

import com.open.capacity.user.model.SysEmployee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;
import java.util.Map;

/**
* @author 作者 ftquan E-mail: 464725602@qq.com
* @version 创建时间：2017年11月12日 上午22:57:51
 * 員工管理
 */
@Mapper
public interface SysEmployeeDao {

	@Options(useGeneratedKeys = true, keyProperty = "id")
	int save(SysEmployee employee);

	int delete(String id);

	int updateByOps(SysEmployee employee);

	SysEmployee findByUsername(String  name);

	SysEmployee findById(String id);

	int count(Map<String, Object> params);

	List<SysEmployee> findList(Map<String, Object> params);

}
